package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductInfo;
import com.bawei.system.domain.vo.IndexInfo;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author：sxq
 * @Package：com.bawei.es.service
 * @Project：mall_cloud
 * @name：EsService
 * @Date：2024/6/20 11:25
 */
@Service
public interface EsService {

    R<Boolean> indexCreate(IndexInfo indexInfo);
    IndexInfo byIndexName(String indexName);

    void indexDelete(String indexName);

    IndexInfo updIndex(IndexInfo indexInfo);

    void updateMapping(IndexInfo indexInfo, Integer flag);

    IndexInfo indexGetSettingAndMapping(String indexName);

    List<Map<String, Object>> byImages(Integer productId);

}
